import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入normalize.css
import 'normalize.css'
// 全局挂载请求
import api from '@/api'
Vue.prototype.$api = api

Vue.config.productionTip = false
// 按需引入vant
import {
  Tab,
  Tabs,
  Sidebar,
  SidebarItem,
  Overlay, Image as VanImage,
  Rate,
  List,
  PullRefresh,
  Icon,
  Popup,
  Empty,
  Card
} from 'vant';
Vue.use(Tab)
  .use(Tabs)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Overlay)
  .use(VanImage)
  .use(Rate)
  .use(List)
  .use(PullRefresh)
  .use(Icon)
  .use(Popup)
  .use(Empty)
  .use(Card)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
